package com.ayf.payment.game.api.service.impl;

import com.ayf.payment.game.api.entity.GroupAndPartition;
import com.ayf.payment.game.api.mapper.GroupAndPartitionMapper;
import com.ayf.payment.game.api.service.GroupAndPartitionService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class GroupAndPartitionServiceImpl implements GroupAndPartitionService {

    @Resource
    private GroupAndPartitionMapper groupAndPartitionMapper;

    @Override
    public void save(GroupAndPartition t) {
        groupAndPartitionMapper.insert(t);
    }

    @Override
    public List<GroupAndPartition> select(GroupAndPartition t) {

        return groupAndPartitionMapper.getGroupAndPartition(t);
    }
}


